package com.chapter.sample.dao.impl;

import com.chapter.sample.dao.UserDao;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

@Component("userDao")
public class UserDaoImpl implements UserDao {

    public UserDaoImpl() {
        System.out.println("userDao创建");
    }

    //@PostConstruct
    public void init() {
        System.out.println("userDao初始化方法");
    }


    public void destroy(){
        System.out.println("userDao销毁方法");
    }
}
